//-----------------------------------------------------------------------
//<copyright file="SanPham.cs" company="MinhSong">
//Copyright (c) MinhSong. All rights reserved.
//</copyright>
//-----------------------------------------------------------------------
using System;
using System.Runtime.Serialization;

namespace PMS.Entity
{
	public class SanPham: BaseEntity
	{
		#region Variable Declarations

		private string m_MaThuoc;
		private string m_TenHoatChat;
		private string m_TenBietDuoc;
		private string m_NongDoHamLuong;
		private string m_DangBaoChe;
		private string m_QuyCach;
		private string m_SoDangKy;
		private string m_XuatXu;
		private string m_NhaSX;
		private string m_NhaNK;
		private string m_GhiChu;
		private string m_MaDonVi;
		private string m_MaNH;
        private string m_TenDonVi;

		#endregion

		#region Constructors

		public SanPham() {}
		public SanPham(
			string maThuoc,
			string tenHoatChat,
			string tenBietDuoc,
			string nongDoHamLuong,
			string dangBaoChe,
			string quyCach,
			string soDangKy,
			string xuatXu,
			string nhaSX,
			string nhaNK,
			string ghiChu,
			string maDonVi,
			string maNH)
		{
			m_MaThuoc = maThuoc;
			m_TenHoatChat = tenHoatChat;
			m_TenBietDuoc = tenBietDuoc;
			m_NongDoHamLuong = nongDoHamLuong;
			m_DangBaoChe = dangBaoChe;
			m_QuyCach = quyCach;
			m_SoDangKy = soDangKy;
			m_XuatXu = xuatXu;
			m_NhaSX = nhaSX;
			m_NhaNK = nhaNK;
			m_GhiChu = ghiChu;
			m_MaDonVi = maDonVi;
			m_MaNH = maNH;
		}

		#endregion

		#region Properties

		/// <summary>
		///
		/// </summary>
		///<value>This type is string</value>
		[DataMember]
		public string MaThuoc
		{
			get { return m_MaThuoc; }
			set { m_MaThuoc = value;
				OnPropertyChanged("MaThuoc");
		}
		}

		/// <summary>
		///
		/// </summary>
		///<value>This type is string</value>
		[DataMember]
		public string TenHoatChat
		{
			get { return m_TenHoatChat; }
			set { m_TenHoatChat = value;
				OnPropertyChanged("TenHoatChat");
		}
		}

		/// <summary>
		///
		/// </summary>
		///<value>This type is string</value>
		[DataMember]
		public string TenBietDuoc
		{
			get { return m_TenBietDuoc; }
			set { m_TenBietDuoc = value;
				OnPropertyChanged("TenBietDuoc");
		}
		}

		/// <summary>
		///
		/// </summary>
		///<value>This type is string</value>
		[DataMember]
		public string NongDoHamLuong
		{
			get { return m_NongDoHamLuong; }
			set { m_NongDoHamLuong = value;
				OnPropertyChanged("NongDoHamLuong");
		}
		}

		/// <summary>
		///
		/// </summary>
		///<value>This type is string</value>
		[DataMember]
		public string DangBaoChe
		{
			get { return m_DangBaoChe; }
			set { m_DangBaoChe = value;
				OnPropertyChanged("DangBaoChe");
		}
		}

		/// <summary>
		///
		/// </summary>
		///<value>This type is string</value>
		[DataMember]
		public string QuyCach
		{
			get { return m_QuyCach; }
			set { m_QuyCach = value;
				OnPropertyChanged("QuyCach");
		}
		}

		/// <summary>
		///
		/// </summary>
		///<value>This type is string</value>
		[DataMember]
		public string SoDangKy
		{
			get { return m_SoDangKy; }
			set { m_SoDangKy = value;
				OnPropertyChanged("SoDangKy");
		}
		}

		/// <summary>
		///
		/// </summary>
		///<value>This type is string</value>
		[DataMember]
		public string XuatXu
		{
			get { return m_XuatXu; }
			set { m_XuatXu = value;
				OnPropertyChanged("XuatXu");
		}
		}

		/// <summary>
		///
		/// </summary>
		///<value>This type is string</value>
		[DataMember]
		public string NhaSX
		{
			get { return m_NhaSX; }
			set { m_NhaSX = value;
				OnPropertyChanged("NhaSX");
		}
		}

		/// <summary>
		///
		/// </summary>
		///<value>This type is string</value>
		[DataMember]
		public string NhaNK
		{
			get { return m_NhaNK; }
			set { m_NhaNK = value;
				OnPropertyChanged("NhaNK");
		}
		}

		/// <summary>
		///
		/// </summary>
		///<value>This type is string</value>
		[DataMember]
		public string GhiChu
		{
			get { return m_GhiChu; }
			set { m_GhiChu = value;
				OnPropertyChanged("GhiChu");
		}
		}

		/// <summary>
		///
		/// </summary>
		///<value>This type is string</value>
		[DataMember]
		public string MaDonVi
		{
			get { return m_MaDonVi; }
			set { m_MaDonVi = value;
				OnPropertyChanged("MaDonVi");
		}
		}

		/// <summary>
		///
		/// </summary>
		///<value>This type is string</value>
		[DataMember]
		public string MaNH
		{
			get { return m_MaNH; }
			set { m_MaNH = value;
				OnPropertyChanged("MaNH");
		}
		}

        [DataMember]
        public string TenDonVi
        {
            get { return m_TenDonVi; }
            set
            {
                m_TenDonVi = value;
                OnPropertyChanged("TenDonVi");
            }
        }


		#endregion
	}
}//End Class
